package cn.yuanqiao.archive.Identify.mapper;

import cn.yuanqiao.archive.Identify.domain.Destroy;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface DestroyMapper {
    List<Map<String, Object>> getlist(@Param("fields") String fields, @Param("tablename") String tablename, @Param("bgqxgqsql") String bgqxgqsql, @Param("lczsql") String lczsql, @Param("tiaojian") String tiaojian, @Param("orderstr") String orderstr, @Param("orderfield") String orderfield);
    List<Map<String, Object>> getlistnew(@Param("fields") String fields, @Param("tablename") String tablename, @Param("bgqxgqsql") String bgqxgqsql, @Param("lczsql") String lczsql,
                                         @Param("tiaojian") String tiaojian, @Param("orderstr") String orderstr, @Param("orderfield") String orderfield, @Param("state") Integer state);

    void delDispose(@Param("tenantCode") String tenantCode, @Param("daIds")String daIds);

    void insert(Destroy destroy);

    void update(Destroy destroy);
    void update1(Long id);


    void deleteById(Long id);

    List<Destroy> findAll(Destroy destroy);
    List<Destroy> findAll1(Destroy destroy);

    Destroy findById(Long destroyId);

    void clearFilePath(Long destroyId);

    void delDocFile(@Param("efileTableName")String efileTableName, @Param("daId") Long daId);

    void delArchive(@Param("id")Long id, @Param("tableName") String tableName);
}
